@import '../../res/theme/xxhz.scss';

.index-sale-box {
  .goods-like-left {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: initial !important;

    .recommendation-block-item-bottom-right {
      .share-earn {
        width: 200px;
        height: 68px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: url("https://resource.ivcheng.com/upload/images/20210824/1629767380064_99.png") no-repeat;
        background-size: cover;

        .share-left {
          font-weight: bold;
          margin-top: 8px;
          width: 50%;
          font-size: 20px;
          color: #332215;
        }

        .price {
          min-width: 50%;
          color: #fff;
          font-size: 20px;

          .true-price-share {
            color: #fff;
            font-size: 24px;
            font-weight: 600;
            display: inline;
          }
        }
      }

      .snapped-up {
        font-weight: bold;
        width: 160px;
        padding: 8Px 4Px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 32px;
        text-align: center;
        color: #000;
        background: #ffdd09;
        font-size: 22px;
      }

      .recommendation-block-item-bottom-right-btn {
        background-color: #ffdd09;
        font-weight: bold;
        font-size: 24px;
        padding: 15px 40px;
        border-radius: 30px;
        position: relative;
        left: -10px;
      }
    }
  }

  .shangxin-today-block-item-bottom-price {
    font-size: 14px;
    font-weight: bold;

    .shangxin-today-block-item-bottom-price-before {
      font-size: 22px;
      font-weight: bold;
    }
  }

  .shangxin-today-block-item-bottom-original {
    color: #ababab;
    text-decoration: line-through;
    font-size: 24px;
  }

  .shangxin-today-block-item-bottom-original::before {
    font-size: 22px;
    content: '￥';
    color: #ababab;
    display: inline-block;
  }

  .title-box {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    padding-right: 20px;
    align-items: center;

    .title {
      font-size: 32px;
      font-weight: bold;
      color: #454545;
    }

    .more {
      font-size: 26px;
      color: #666;
      display: flex;
      align-items: center;

      .icon {
        width: 26px;
        height: 26px;
        border-radius: 14px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;

        .at-icon {
          font-size: 20px;
          height: 26px;
          line-height: 28px;
        }

        .at-icon-chevron-right {
          &::before {
            font-size: 20px;
            height: 26px;
            line-height: 28px;
          }
        }
      }
    }
  }
}

.index-sale-1 {
  .content-box {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    padding-top: 0;
    border-radius: 20px;
    overflow: hidden;

    .wrap {
      //padding: 20px 0;
    }

    .swiper-box {
      width: 100%;
      position: relative;

      .swiper {
        width: 100%;
        height: 274px;
      }

      .img {
        width: 100%;
        height: 274px;
        display: block;
        border-radius: 20px 20px 0 0;
      }

      .name {
        position: absolute;
        bottom: 0;
        font-size: 24px;
        //background-image: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
        padding: 30px 10px 10px;
        width: 100%;
        white-space: nowrap;
        color: white;
        box-sizing: border-box;
        text-overflow: ellipsis;
        overflow: hidden;
      }

      .indicator-box {
        position: absolute;
        top: 24px;
        right: 24px;
        display: flex;
        justify-content: flex-end;

        .indicator-item {
          width: 12px;
          height: 12px;
          border-radius: 6px;
          background-color: white;
          margin-right: 8px;
          transition: width 0.2s ease 0s;
          overflow: hidden;
        }

        .active {
          width: 40px;
          transition: width 0.2s ease 0s;
        }
      }
    }

    .info {
      background-color: #fff;
      padding: 18px 20px 20px;
      border-bottom-left-radius: 20px;
      border-bottom-right-radius: 20px;

      .labels {
        display: flex;
        flex-wrap: wrap;
        margin-top: -8px;

        .label {
          margin-top: 8px;
          background-color: #fff;
          color: #ff9471;
          border: solid 1px #ff9471;
          border-radius: 30px;
          font-size: 22px;
          padding: 3px 12px;
          margin-right: 10px;
        }

        .label:last-child {
          margin-right: 0;
        }
      }

      .name {
        margin: 10px 0;
        font-size: 30px;
        font-weight: bold;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }

      .subTitle {
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 14px;
        /*! autoprefixer: ignore next */
        -webkit-box-orient: vertical;
        /* autoprefixer: on */
        -webkit-line-clamp: 2;
        display: -webkit-box;
        font-size: 24px !important;
        color: #676768 !important;
      }
    }

    .info-box {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      box-sizing: border-box;
      background-color: white;
      margin-top: 28px;

      .left {
        width: 50%;
        display: flex;
        flex-direction: column;

        .discount {
          position: relative;
          top: 2px;
          line-height: initial;
          min-width: 50px;
          letter-spacing: 1px;
          color: #fff;
          background-color: #ff2402;
          border-radius: 26px 26px 26px 0;
          text-align: center;
          margin-left: 6px;
          padding: 4px 10px;
          font-size: 18px;
          white-space: nowrap;
        }

        .price {
          font-size: 22px;
          color: #262e2d;
          display: flex;
          align-items: flex-end;

          .recommendation-block-item-bottom-price {
            font-size: 44px;
            font-weight: bold;
            margin-right: 6px;
            font-family: Avenir;
            display: inline;

            .recommendation-block-item-bottom-price-before {
              font-size: 22px;
              font-family: Avenir;
            }
          }

          .mark {
            font-family: Avenir;
            color: $color-price;
            position: relative;
            font-size: 22px;
            bottom: -6.5px;
          }

          .main {
            font-size: 44px;
            font-weight: bold;
            padding-left: 2px !important;
          }

          .market-price {
            white-space: nowrap;
            font-family: Avenir;
            position: relative;
            top: 0;
            text-decoration: line-through;
            color: #999;
          }

          .margin-left {
            margin-left: 6px;
          }
        }

        .process {
          line-height: 1;

          .text {
            font-size: 16px;
            color: #888;
            display: block;
          }
        }
      }

      .right {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;

        .share-earn {
          width: 200px;
          height: 68px;
          display: flex;
          align-items: center;
          justify-content: center;
          text-align: center;
          background: url("https://resource.ivcheng.com/upload/images/20210824/1629767380064_99.png") no-repeat;
          background-size: cover;

          .share-left {
            font-weight: bold;
            margin-top: 8px;
            width: 50%;
            font-size: 20px;
            color: #332215;
          }

          .price {
            min-width: 50%;
            color: #fff;
            font-size: 20px;
            display: flex;
            justify-content: center;
            align-items: baseline;

            .true-price-share {
              color: #fff;
              font-size: 35px;
              font-weight: 600;
            }
          }
        }

        .snapped-up {
          width: 160px;
          padding: 8Px 4Px;
          display: flex;
          font-weight: bold;
          align-items: center;
          justify-content: center;
          border-radius: 32px;
          text-align: center;
          color: #000;
          background: #ffdd09;
          font-size: 22px;
        }

        .time-tips {
          font-size: 22px;
          text-align: center;
        }
      }
    }
  }

  .good-item {
    padding: 0 20px 20px;

    .wrap {
      border-radius: 20px;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      background-color: white;
      display: flex;
      box-sizing: border-box;
      padding: 20px;

      .cover {
        position: relative;
        width: 230px;
        height: 230px;
        border-radius: 15px;

        .discount {
          position: absolute;
          top: 0;
          left: 0;
          line-height: initial;
          min-width: 50px;
          letter-spacing: 1px;
          color: #fff;
          background-color: #ff2402;
          border-radius: 15px 26px 26px 0;
          text-align: center;
          padding: 4px 10px;
          font-size: 18px;
          white-space: nowrap;
        }

        .img {
          border-radius: 15px;
          width: 230px;
          height: 230px;
        }
      }

      .info-box {
        padding-left: 20px;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        background-color: white;
        width: calc(100% - 244px);

        .name {
          margin: 0 0 6px;
          font-size: 30px;
          font-weight: bold;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .subTitle {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          margin-bottom: 10px;
          font-size: 24px !important;
          color: #676768 !important;
        }

        .left {
          overflow: hidden;
          display: flex;
          flex-direction: column;

          .discount {
            line-height: initial;
            min-width: 50px;
            letter-spacing: 1px;
            color: #fff;
            background-color: #ff2402;
            border-radius: 26px 26px 26px 0;
            text-align: center;
            margin-left: 6px;
            padding: 4px 10px;
            font-size: 18px;
            white-space: nowrap;
          }

          .price-base-line {
            align-items: baseline !important;
          }

          .price {
            font-size: 22px;
            justify-content: center;
            display: flex;
            align-items: center;

            .mark {
              font-family: Avenir;
              color: $color-price;
            }

            .main {
              font-size: 36px;
              font-weight: bold;
              padding-left: 2px !important;
            }

            .market-price {
              font-family: Avenir;
              text-decoration: line-through;
              color: #999;
            }

            .margin-left {
              margin-left: 6px;
            }
          }
        }

        .right {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: space-between;

          .share-earn {
            width: 200px;
            height: 68px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: url("https://resource.ivcheng.com/upload/images/20210824/1629767380064_99.png") no-repeat;
            background-size: cover;

            .share-left {
              font-weight: bold;
              margin-top: 8px;
              width: 50%;
              font-size: 20px;
              color: #332215;
            }

            .price {
              min-width: 50%;
              color: #fff;
              font-size: 20px;

              .true-price-share {
                color: #fff;
                font-size: 35px;
                font-weight: 600;
              }
            }
          }

          .snapped-up {
            width: 160px;
            padding: 8Px 4Px;
            display: flex;
            font-weight: bold;
            align-items: center;
            justify-content: center;
            border-radius: 32px;
            text-align: center;
            color: #000;
            background: #ffdd09;
            font-size: 22px;
          }

          .time-tips {
            font-size: 22px;
            text-align: center;
          }
        }
      }
    }
  }
}

.index-sale-most {
  width: 100%;

  .content-box {
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;

    .big-item {
      height: 260px;
      padding: 0 10px;
      box-sizing: border-box;

      .small-item {
        border-radius: 20px;
        overflow: hidden;
        width: 100%;
        height: 260px;
        position: relative;
        box-sizing: border-box;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;

        .label {
          width: 68px;
          height: 28px;
          border: solid 1Px white;
          border-radius: 10px;
          line-height: 28px;
          text-align: center;
          background-color: rgba(255, 255, 255, 0.2);
          color: white;
          font-size: 15px;
        }

        .title {
          font-size: 20px;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          /*! autoprefixer: ignore next */
          -webkit-box-orient: vertical;
          /* autoprefixer: on */
          text-overflow: ellipsis;
          overflow: hidden;
          color: white;
          line-height: 30px;
          height: 60px;
          word-break: break-all;
          // padding: 10px;
          box-sizing: border-box;
          margin: 5px 0;
        }

        .price {
          font-size: 26px;
          color: white;

          .symbol {
            font-size: 20px;
            padding-right: 5px;
          }
        }

      }

      .img {
        position: absolute;
        z-index: -1;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
      }

      .small-item-3 {
        width: 31%;
        display: inline-block;
        margin-left: 2%;
        padding: 0;

        &:first-child {
          margin: 0;
        }
      }

      .zz {
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 15px;
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        background: rgba(0, 0, 0, 0.2);
      }

      .zz-right {
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
      }
    }
  }

  .shangxin-today-block-item-bottom-price {
    position: relative;
    top: 3px;
    font-size: 32px;
    font-weight: bold;
    margin-right: 3px;

    .shangxin-today-block-item-bottom-price-before {
      font-size: 22px;
      font-weight: bold;
    }
  }
}

.index-sale-common {
  width: 100%;

  .title-box {
    height: auto;
  }

  .content-box {
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;

    .cover {
      width: 100%;
      padding-bottom: 20px;

      .h5img {
        height: initial !important;
      }

      .img {
        width: 100%;
        height: 275px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        display: block;
      }
    }

    .goods {
      display: flex;
      flex-wrap: wrap;
      padding-bottom: 20px;

      .salesVolume {
        margin-bottom: 10px;
        font-size: 22px;
        color: $color-font-less;
        box-sizing: border-box;
      }

      ._discount {
        position: absolute;
        left: 0;
        top: 0;
        content: "";
        display: block;
        color: #fff;
      }

      .good-item {
        width: 33.3333%;
        box-sizing: border-box;
        padding: 0 10px;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;

        .img {
          display: block;
          width: 100% !important;
          height: 135px;
          // border-radius: 16px;
        }

        .title {
          font-size: 24px;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          /*! autoprefixer: ignore next */
          -webkit-box-orient: vertical;
          /* autoprefixer: on */
          overflow: hidden;
          text-overflow: ellipsis;
          padding: 10px 16px 0;
          box-sizing: border-box;
          line-height: 32px;
          height: 74px;
        }

        .price {
          font-size: 18px;
          color: #888888;

          .symbol {
            color: $color-price;
          }

          .number {
            font-size: 36px;
            color: $color-price;
            padding: 0 6px;
          }
        }

        &:nth-of-type(3n-2) {
          .img {
            border-bottom-left-radius: 20px;
          }

        }

        &:nth-of-type(3n) {
          .img {
            border-bottom-right-radius: 20px;
          }

        }

        &:first-child {
          padding-left: 0;
        }

        &:last-child {
          padding-right: 0;
        }
      }
    }

  }

  .shangxin-today-block-item-image {
    position: relative;
    border-bottom-left-radius: 15px;

    .commission_price {
      position: absolute;
      border-top-right-radius: 30px;
      left: 0;
      font-family: Avenir;
      background: linear-gradient(to left, #ff7c0f, #ff7910, #ff6e15, #ff6a17, #ff5f1b);
      bottom: 0;
      padding: 6px 22px 4px;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 24px !important;

      .commission_price-text {
        font-size: 22px;
      }

      .price-symbol {
        margin-right: 2px;
        margin-left: 8px;
        font-size: 16px;
      }
    }

    .commission_price {
      background-color: $mainColor;
    }
  }

}

.local-life-box-root {
  background: url('https://resource.ivcheng.com/resources/weapp/images/lianlian-index-bg.png') no-repeat;
  background-size: cover;
  margin: 20px !important;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.exchange-wrap-root {
  box-sizing: border-box;
  padding-bottom: 1px;
}

.exchange-wrap {
  margin: 0 10px 20px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  background: #fff;
  box-sizing: border-box;
  border-radius: 10px;

  .img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
  }

  .lt {
    height: 150px;
  }

  .rt {
    width: calc(100% - 170px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .price-wrap {
    display: flex;
    align-items: baseline;

    .list {
      margin-right: 10px;
    }
  }

  .title {
    font-size: 26px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    /*! autoprefixer: ignore next */
    -webkit-box-orient: vertical;
    /* autoprefixer: on */
  }

  .desc {
    font-size: 24px;
    color: #9C9C9C;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .price {
    font-size: 30px;
    color: #FE1717;
  }

  .menshi {
    font-size: 16px;
    color: #A4A4A4;
    text-decoration: line-through;
  }

  .top {
    color: #BDBDBD;
    font-size: 18px;
  }
}

.index-sale-box-other {
  .shangxin-today-block-item-bottom-box, .box-discount {
    color: #fff;
    background-color: #ff2402;
    border-radius: 26px 26px 26px 0;
    text-align: center;
    padding: 2px 10px;
    font-size: 18px;
    white-space: nowrap;
    position: relative;
    margin-right: 4px;
    top: -4px;
  }
}

.index-sale-box {
  .shangxin-today-block-item-bottom-price {
    font-size: 24px;
    font-weight: bold;
    margin-right: 3px;

    .shangxin-today-block-item-bottom-price-before {
      font-size: 18px;
      font-weight: bold;
    }
  }

  .shangxin-today-block-item-bottom-box-discount {
    margin-left: 6px;
  }

  .shangxin-today-block-item-bottom-original {
    color: #ababab;
    text-decoration: line-through;
    font-size: 24px;
  }

  .shangxin-today-block-item-bottom-original::before {
    font-size: 22px;
    content: '￥';
    color: #ababab;
    display: inline-block;
  }
}

.m-r-20 {
  margin-right: 20px;
}

.m-r-10 {
  margin-right: 10px;
}

.inline {
  display: inline;
}

.fee-into {
  background-color: #ff631a;
  color: #fff;
  font-size: 24px;
  padding: 0 6px;
  width: fit-content;
  border-radius: 40px;
}

.limit-one-discount{
  top: -3Px !important;
}
